package com.zzg.dao.impl;

import com.zzg.bean.WorkStatus;
import com.zzg.dao.WorkStatusDAO;
import com.zzg.util.JDBCUtil;
import org.springframework.stereotype.Repository;

@Repository
public class WorkStatusDAOImpl implements WorkStatusDAO{

	@Override
	public String findWorkStatusById(int id) {
		WorkStatus workStatus = JDBCUtil.queryOne(WorkStatus.class,
				"select * from tb_work_status where work_status_id=?", id);
		return workStatus.getNanny_status_name();
	}

}
